<?php

//数据库连接

include 'config/web_inc.php';

session_start();

//第一步：连接数据库
$conn = mysqli_connect($web_conf['db_host'], $web_conf['db_user'], $web_conf['db_pwd'], $web_conf['db_name']);


//第二步：设置编码
mysqli_query($conn, 'SET NAMES UTF8');